home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13237 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  698 b 

  1. Path: li.net!jeremy
  2. From: jeremy@newshost.li.net (Jeremy Markman)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: PLEASE HELP!!!
  5. Date: 5 Apr 1996 14:04:53 GMT
  6. Organization: LI Net (Long Island Network)
  7. Message-ID: <4k39a5$sf@linet06.li.net>
  8. References: <4k25rv$l4s@netnews.ntu.edu.tw>
  9. NNTP-Posting-Host: linet04.li.net
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. b3503104 (b3503104@cc.ntu.edu.tw) wrote:
  13. :  How can I write a program in C to have the similar function as "dir" in DOS?
  14. : ??
  15.  
  16. Use the FindFirst and FindNext functions in DOS.H (at least it's dos.h in 
  17. the borland compiler).
  18. Using a search spec (i.e. *.*) FindFirst will return the first matching 
  19. file, and Findnext will find the next matching file...
  20.